package person.zjh.kaoyansharehub.config;

import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import person.zjh.kaoyansharehub.interceptor.TokenInterceptor;

/**
 * @description: TODO
 * @author 郑佳豪
 * @date 2025/2/13 10:21
 * @version 1.0
 */
@Configuration
@RequiredArgsConstructor
public class WebConfig implements WebMvcConfigurer {

    private final TokenInterceptor tokenInterceptor;

//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(tokenInterceptor)
//                .addPathPatterns("/**")
//                .excludePathPatterns("/front/user/userLogin")
//                .excludePathPatterns("/front/user/userRegister")
//                .excludePathPatterns("/code/getCode")
//                .excludePathPatterns("/front/user/getUserInfo");
//    }



}
